<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css"/>
<title>Thrift module: behavior</title></head><body>
<div class="container-fluid">
<h1>Thrift module: behavior</h1>
<table class="table-bordered table-striped table-condensed"><thead><th>Module</th><th>Services</th><th>Data types</th><th>Constants</th></thead>
<tr>
<td>behavior</td><td></td>
<td><a href="#Struct_BehaveRequest">BehaveRequest</a><br/>
<a href="#Struct_BehaveResponse">BehaveResponse</a><br/>
<a href="#Struct_ListBehaviorRequest">ListBehaviorRequest</a><br/>
<a href="#Struct_ListBehaviorResponse">ListBehaviorResponse</a><br/>
</td>
<td></code></td>
</tr></table>
<hr/><h2 id="Structs">Data structures</h2>
<div class="definition"><h3 id="Struct_ListBehaviorRequest">Struct: ListBehaviorRequest</h3>
<table class="table-bordered table-striped table-condensed"><thead><th>Key</th><th>Field</th><th>Type</th><th>Description</th><th>Requiredness</th><th>Default value</th></thead>
<tr><td>1</td><td>fields</td><td><code>list&lt;<code>string</code>&gt;</code></td><td>选择字段
</td><td>default</td><td></td></tr>
<tr><td>6</td><td>_id</td><td><code>string</code></td><td>查询内容
</td><td>default</td><td></td></tr>
<tr><td>7</td><td>user_id</td><td><code>string</code></td><td>用户ID
</td><td>default</td><td></td></tr>
<tr><td>8</td><td>tgt_id</td><td><code>string</code></td><td>对象ID
</td><td>default</td><td></td></tr>
<tr><td>9</td><td>bhv_type</td><td><code>i32</code></td><td>行为类型:【1.浏览,2.收藏,3.点赞】
</td><td>default</td><td></td></tr>
<tr><td>10</td><td>tgt_type</td><td><code>i32</code></td><td>对象类型：【现场、日记、清单、评论】
</td><td>default</td><td></td></tr>
<tr><td>11</td><td>status</td><td><code>i32</code></td><td>【行为、取消行为】
</td><td>default</td><td></td></tr>
<tr><td>15</td><td>trace_tag</td><td><code>string</code></td><td>跟踪字段 【选填】 前端需要跟踪时设置该字段
</td><td>default</td><td></td></tr>
</table><br/>========== 查询用户行为 ================================================
<br/></div><div class="definition"><h3 id="Struct_ListBehaviorResponse">Struct: ListBehaviorResponse</h3>
<table class="table-bordered table-striped table-condensed"><thead><th>Key</th><th>Field</th><th>Type</th><th>Description</th><th>Requiredness</th><th>Default value</th></thead>
<tr><td>1</td><td>res</td><td><code>string</code></td><td></td><td>default</td><td>"succ"</td></tr>
<tr><td>2</td><td>total</td><td><code>i32</code></td><td></td><td>default</td><td></td></tr>
<tr><td>3</td><td>results</td><td><code>list&lt;<code><a href="module.html#Struct_TBehavior">module.TBehavior</a></code>&gt;</code></td><td></td><td>default</td><td></td></tr>
<tr><td>10</td><td>trace_tag</td><td><code>string</code></td><td>跟踪字段
</td><td>default</td><td></td></tr>
</table><br/></div><div class="definition"><h3 id="Struct_BehaveRequest">Struct: BehaveRequest</h3>
<table class="table-bordered table-striped table-condensed"><thead><th>Key</th><th>Field</th><th>Type</th><th>Description</th><th>Requiredness</th><th>Default value</th></thead>
<tr><td>5</td><td>behaviors</td><td><code>list&lt;<code><a href="module.html#Struct_TBehavior">module.TBehavior</a></code>&gt;</code></td><td></td><td>default</td><td></td></tr>
<tr><td>10</td><td>trace_tag</td><td><code>string</code></td><td>跟踪字段 【选填】 前端需要跟踪时设置该字段
</td><td>default</td><td></td></tr>
</table><br/>========== 执行用户行为 ================================================
<br/></div><div class="definition"><h3 id="Struct_BehaveResponse">Struct: BehaveResponse</h3>
<table class="table-bordered table-striped table-condensed"><thead><th>Key</th><th>Field</th><th>Type</th><th>Description</th><th>Requiredness</th><th>Default value</th></thead>
<tr><td>1</td><td>res</td><td><code>string</code></td><td></td><td>default</td><td>"succ"</td></tr>
<tr><td>2</td><td>succ_ids</td><td><code>list&lt;<code>string</code>&gt;</code></td><td>成功行为IDs
</td><td>default</td><td></td></tr>
<tr><td>3</td><td>fail_ids</td><td><code>list&lt;<code>string</code>&gt;</code></td><td>失败行为IDs
</td><td>default</td><td></td></tr>
<tr><td>10</td><td>trace_tag</td><td><code>string</code></td><td>跟踪字段
</td><td>default</td><td></td></tr>
</table><br/></div></div></body></html>
